/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tutorial.BuilderSiDAO.BuilderPattern;

import java.util.Scanner;
import tutorial.BuilderSiDAO.commons.ptBuilderPersoana;

/**
 * Aceasta este implentarea interfetei Importer care ia date din consola(de la tastatura :P)
 * @author Boogie
 */
public class StdImporter implements ptBuilderPersoana.Importer{

    private Scanner s;

    public StdImporter() {
        s = new  Scanner(System.in);
    }
    
    
    @Override
    public String importNume() {
        System.out.print("Introduceti Numele:");
        return s.nextLine();
    }

    @Override
    public String importPrenume() {
        System.out.print("Introduceti Prenumele:");
        return s.nextLine();
    }

    @Override
    public String importAdresa() {
        System.out.print("Introduceti Adresa:");
        return s.nextLine();
    }

    @Override
    public void open() {
        //nu trebuie sa faca nimic in cazul asta
    }

    @Override
    public void close() {
        //nu trebuie sa faca nimic in cazul asta
    }
    
}
